package com.coder520.sync_learning.demo;

public class EventClient {
    /*

     */
    public static void main(String[] args){
        final EventQueue eventQueue=new EventQueue();
        new Thread(()->{
            for (;;){
                eventQueue.offer(new EventQueue.Evnet());
            }
        },"producer").start();

        new Thread(()->{
            for (;;){
                eventQueue.offer(new EventQueue.Evnet());
            }
        },"Consumer").start();
    }
}
